import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

// import 'package:toutiao/tt/index/IndexTab.dart';
// import 'package:toutiao/tt/infolist/SearchTxt.dart';

class LoginRegister extends StatefulWidget {
  LoginRegister();

  @override
  createState() => new _LoginRegisterState();
}

class _LoginRegisterState extends State<LoginRegister> {
  _LoginRegisterState();

  @override
  void dispose() {
    super.dispose();
  }

  @override
  void initState() {
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return new SizedBox(
      width: 168,
      child: new Row(
        mainAxisAlignment: MainAxisAlignment.spaceBetween,
        children: [
          FlatButton(
              onPressed: () {
                Navigator.pushNamed(context, "/login");
              },
              color: Colors.red,
              child: Text(
                "登陆",
                style:
                    TextStyle(color: Colors.white, fontWeight: FontWeight.bold),
              ),
              shape: RoundedRectangleBorder(
                  side: BorderSide(
                    color: Colors.white,
                    width: 1,
                  ),
                  borderRadius: BorderRadius.circular(8))),
          FlatButton(
              onPressed: () {
                Navigator.pushNamed(context, "/register");
              },
              color: Colors.red,
              child: Text(
                "注册",
                style:
                    TextStyle(color: Colors.white, fontWeight: FontWeight.bold),
              ),
              shape: RoundedRectangleBorder(
                  side: BorderSide(
                    color: Colors.white,
                    width: 1,
                  ),
                  borderRadius: BorderRadius.circular(8)))
        ],
      ),
    );
  }
}
